package entity;

import java.util.Date;

/**
 * 项目名：PSIMSys
 * 包名：entity
 * 类名：User
 * 描述：用户实体表
 * 作者：柳胜酉
 * 开始时间：2023/4/20
 * 完成时间：
 * 版本：1.0
 */
public class User {
    private int user_id; //用户编号
    private String user_name; //用户名
    private String password; //用户密码
    private int role; //角色（0-管理员，1-采购员，2-销售员）
    private int sex; //性别(0-女，1-男)
    private String phone; //电话
    private String birth; //生日
    private Date createTime; //创建时间
    private String photo; //用户头像

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", sex=" + sex +
                ", phone='" + phone + '\'' +
                ", birth='" + birth + '\'' +
                ", createTime=" + createTime +
                ", photo='" + photo + '\'' +
                '}';
    }
}
